package com.cloud.mall.test.client;

import com.cloud.mall.result.GeneralResponse;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @Author: 梁二东
 * @Date: 2024/12/16 11:43
 * @Description:
 **/
@FeignClient(name = "storage-service")
public interface StorageServiceClient {

    /**
     * 扣除存储数量
     */
    @GetMapping("/teststorage/deduct")
    GeneralResponse<Void> deduct(@RequestParam("commodityCode") String commodityCode, @RequestParam("count") int count);

}
